home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / CMPRComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  2.4 KB  |  119 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        CMPRComponent.h
  3.  
  4.      Contains:    ColorSync ProfileResponder Component API
  5.  
  6.      Version:    Technology:    ColorSync 1.0
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1993-1999 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CMPRCOMPONENT__
  18. #define __CMPRCOMPONENT__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24. #ifndef __QUICKDRAW__
  25.     #include <Quickdraw.h>
  26. #endif
  27.  
  28. #ifndef __COMPONENTS__
  29.     #include <Components.h>
  30. #endif
  31.  
  32. #ifndef __CMAPPLICATION__
  33.     #include <CMApplication.h>
  34. #endif
  35.  
  36.  
  37.  
  38.  
  39. #if PRAGMA_ONCE
  40. #pragma once
  41. #endif
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46.  
  47. #if PRAGMA_IMPORT
  48. #pragma import on
  49. #endif
  50.  
  51. #if PRAGMA_STRUCT_ALIGN
  52.     #pragma options align=mac68k
  53. #elif PRAGMA_STRUCT_PACKPUSH
  54.     #pragma pack(push, 2)
  55. #elif PRAGMA_STRUCT_PACK
  56.     #pragma pack(2)
  57. #endif
  58.  
  59. enum {
  60.     CMPRInterfaceVersion        = 0
  61. };
  62.  
  63. /* Component function selectors */
  64. enum {
  65.     kCMPRGetProfile                = 0,
  66.     kCMPRSetProfile                = 1,
  67.     kCMPRSetProfileDescription    = 2,
  68.     kCMPRGetIndexedProfile        = 3,
  69.     kCMPRDeleteDeviceProfile    = 4
  70. };
  71.  
  72.  
  73. EXTERN_API( CMError )
  74. CMGetProfile                    (ComponentInstance         pr,
  75.                                  CMProfileHandle         aProfile,
  76.                                  CMProfileHandle *        returnedProfile)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0000, 0x7000, 0xA82A);
  77.  
  78. EXTERN_API( CMError )
  79. CMSetProfile                    (ComponentInstance         pr,
  80.                                  CMProfileHandle         newProfile)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  81.  
  82. EXTERN_API( CMError )
  83. CMSetProfileDescription            (ComponentInstance         pr,
  84.                                  long                     DeviceData,
  85.                                  CMProfileHandle         hProfile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  86.  
  87. EXTERN_API( CMError )
  88. CMGetIndexedProfile                (ComponentInstance         pr,
  89.                                  CMProfileSearchRecordHandle  search,
  90.                                  CMProfileHandle *        returnProfile,
  91.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  92.  
  93. EXTERN_API( CMError )
  94. CMDeleteDeviceProfile            (ComponentInstance         pr,
  95.                                  CMProfileHandle         deleteMe)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  96.  
  97.  
  98.  
  99. #if PRAGMA_STRUCT_ALIGN
  100.     #pragma options align=reset
  101. #elif PRAGMA_STRUCT_PACKPUSH
  102.     #pragma pack(pop)
  103. #elif PRAGMA_STRUCT_PACK
  104.     #pragma pack()
  105. #endif
  106.  
  107. #ifdef PRAGMA_IMPORT_OFF
  108. #pragma import off
  109. #elif PRAGMA_IMPORT
  110. #pragma import reset
  111. #endif
  112.  
  113. #ifdef __cplusplus
  114. }
  115. #endif
  116.  
  117. #endif /* __CMPRCOMPONENT__ */
  118.  
  119.